using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class AssetsVersionControl_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(global::AssetsVersionControl);
            args = new Type[]{};
            method = type.GetMethod("WriteRecord", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, WriteRecord_0);
            args = new Type[]{};
            method = type.GetMethod("GetRecord", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetRecord_1);
            args = new Type[]{typeof(System.Int32).MakeByRefType()};
            method = type.GetMethod("GetRecord", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetRecord_2);
            args = new Type[]{};
            method = type.GetMethod("LoadBuildInAssetsVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LoadBuildInAssetsVersion_3);
            args = new Type[]{};
            method = type.GetMethod("LoadRecordVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LoadRecordVersion_4);
            args = new Type[]{typeof(System.String)};
            method = type.GetMethod("LoadNetVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, LoadNetVersion_5);
            args = new Type[]{typeof(System.Collections.Generic.List<global::KeyValue>), typeof(System.String)};
            method = type.GetMethod("GetAbbNewAssets", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetAbbNewAssets_6);
            args = new Type[]{typeof(System.String), typeof(System.String)};
            method = type.GetMethod("CompareNumber", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareNumber_7);
            args = new Type[]{typeof(System.String), typeof(System.String), typeof(System.String)};
            method = type.GetMethod("CompareVersion2", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareVersion2_8);
            args = new Type[]{typeof(System.String), typeof(System.String), typeof(System.String)};
            method = type.GetMethod("CompareVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CompareVersion_9);
            args = new Type[]{typeof(System.String)};
            method = type.GetMethod("GetAssetsPath", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetAssetsPath_10);
            args = new Type[]{typeof(System.String), typeof(System.String), typeof(System.Boolean)};
            method = type.GetMethod("GetNewVersionPath", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetNewVersionPath_11);
            args = new Type[]{};
            method = type.GetMethod("CheckAppVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, CheckAppVersion_12);
            args = new Type[]{};
            method = type.GetMethod("GetAppVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetAppVersion_13);
            args = new Type[]{};
            method = type.GetMethod("GetAppSize", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetAppSize_14);
            args = new Type[]{typeof(System.Collections.Generic.List<global::KeyValue>)};
            method = type.GetMethod("FileCheck", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, FileCheck_15);
            args = new Type[]{};
            method = type.GetMethod("ReplaceAssetsRecord", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ReplaceAssetsRecord_16);
            args = new Type[]{};
            method = type.GetMethod("SaveRecord", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SaveRecord_17);
            args = new Type[]{};
            method = type.GetMethod("SaveNetVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, SaveNetVersion_18);
            args = new Type[]{};
            method = type.GetMethod("GetCurAssVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetCurAssVersion_19);
            args = new Type[]{};
            method = type.GetMethod("GetNetAssVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetNetAssVersion_20);
            args = new Type[]{};
            method = type.GetMethod("GetBuildInAssVersion", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetBuildInAssVersion_21);
            args = new Type[]{typeof(System.String), typeof(System.String)};
            method = type.GetMethod("GetNetValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetNetValue_22);
            args = new Type[]{typeof(System.String), typeof(System.String)};
            method = type.GetMethod("GetBuildInValue", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, GetBuildInValue_23);

            field = type.GetField("sec_Public", flag);
            app.RegisterCLRFieldGetter(field, get_sec_Public_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_sec_Public_0, null);
            field = type.GetField("sec_Assets", flag);
            app.RegisterCLRFieldGetter(field, get_sec_Assets_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_sec_Assets_1, null);
            field = type.GetField("sec_Lua", flag);
            app.RegisterCLRFieldGetter(field, get_sec_Lua_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_sec_Lua_2, null);
            field = type.GetField("sec_Other", flag);
            app.RegisterCLRFieldGetter(field, get_sec_Other_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_sec_Other_3, null);
            field = type.GetField("sec_MP4", flag);
            app.RegisterCLRFieldGetter(field, get_sec_MP4_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_sec_MP4_4, null);
            field = type.GetField("AssetsRecord", flag);
            app.RegisterCLRFieldGetter(field, get_AssetsRecord_5);
            app.RegisterCLRFieldSetter(field, set_AssetsRecord_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_AssetsRecord_5, AssignFromStack_AssetsRecord_5);
            field = type.GetField("BuildInVersion", flag);
            app.RegisterCLRFieldGetter(field, get_BuildInVersion_6);
            app.RegisterCLRFieldSetter(field, set_BuildInVersion_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_BuildInVersion_6, AssignFromStack_BuildInVersion_6);
            field = type.GetField("NetVersion", flag);
            app.RegisterCLRFieldGetter(field, get_NetVersion_7);
            app.RegisterCLRFieldSetter(field, set_NetVersion_7);
            app.RegisterCLRFieldBinding(field, CopyToStack_NetVersion_7, AssignFromStack_NetVersion_7);
            field = type.GetField("abUseRecords", flag);
            app.RegisterCLRFieldGetter(field, get_abUseRecords_8);
            app.RegisterCLRFieldSetter(field, set_abUseRecords_8);
            app.RegisterCLRFieldBinding(field, CopyToStack_abUseRecords_8, AssignFromStack_abUseRecords_8);
            field = type.GetField("buildInAssVersion", flag);
            app.RegisterCLRFieldGetter(field, get_buildInAssVersion_9);
            app.RegisterCLRFieldSetter(field, set_buildInAssVersion_9);
            app.RegisterCLRFieldBinding(field, CopyToStack_buildInAssVersion_9, AssignFromStack_buildInAssVersion_9);


            app.RegisterCLRCreateDefaultInstance(type, () => new global::AssetsVersionControl());
            app.RegisterCLRCreateArrayInstance(type, s => new global::AssetsVersionControl[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* WriteRecord_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            global::AssetsVersionControl.WriteRecord();

            return __ret;
        }

        static StackObject* GetRecord_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            var result_of_this_method = global::AssetsVersionControl.GetRecord();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* GetRecord_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @index = __intp.RetriveInt32(ptr_of_this_method, __mStack);


            var result_of_this_method = global::AssetsVersionControl.GetRecord(ref @index);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            switch(ptr_of_this_method->ObjectType)
            {
                case ObjectTypes.StackObjectReference:
                    {
                        var ___dst = ILIntepreter.ResolveReference(ptr_of_this_method);
                        ___dst->ObjectType = ObjectTypes.Integer;
                        ___dst->Value = @index;
                    }
                    break;
                case ObjectTypes.FieldReference:
                    {
                        var ___obj = __mStack[ptr_of_this_method->Value];
                        if(___obj is ILTypeInstance)
                        {
                            ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = @index;
                        }
                        else
                        {
                            var ___type = __domain.GetType(___obj.GetType()) as CLRType;
                            ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, @index);
                        }
                    }
                    break;
                case ObjectTypes.StaticFieldReference:
                    {
                        var ___type = __domain.GetType(ptr_of_this_method->Value);
                        if(___type is ILType)
                        {
                            ((ILType)___type).StaticInstance[ptr_of_this_method->ValueLow] = @index;
                        }
                        else
                        {
                            ((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, @index);
                        }
                    }
                    break;
                 case ObjectTypes.ArrayReference:
                    {
                        var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as System.Int32[];
                        instance_of_arrayReference[ptr_of_this_method->ValueLow] = @index;
                    }
                    break;
            }

            __intp.Free(ptr_of_this_method);
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* LoadBuildInAssetsVersion_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            global::AssetsVersionControl.LoadBuildInAssetsVersion();

            return __ret;
        }

        static StackObject* LoadRecordVersion_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            global::AssetsVersionControl.LoadRecordVersion();

            return __ret;
        }

        static StackObject* LoadNetVersion_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @path = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::AssetsVersionControl.LoadNetVersion(@path);

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* GetAbbNewAssets_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @secName = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Collections.Generic.List<global::KeyValue> @values = (System.Collections.Generic.List<global::KeyValue>)typeof(System.Collections.Generic.List<global::KeyValue>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            global::AssetsVersionControl.GetAbbNewAssets(@values, @secName);

            return __ret;
        }

        static StackObject* CompareNumber_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @v1 = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @v0 = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::AssetsVersionControl.CompareNumber(@v0, @v1);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* CompareVersion2_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @oriStr = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @curStr = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.String @netStr = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::AssetsVersionControl.CompareVersion2(@netStr, @curStr, @oriStr);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* CompareVersion_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @oriStr = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @curStr = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.String @netStr = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::AssetsVersionControl.CompareVersion(@netStr, @curStr, @oriStr);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* GetAssetsPath_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @bundleName = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::AssetsVersionControl.GetAssetsPath(@bundleName);

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* GetNewVersionPath_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @root = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @key = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.String @sec = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::AssetsVersionControl.GetNewVersionPath(@sec, @key, @root);

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* CheckAppVersion_12(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            var result_of_this_method = global::AssetsVersionControl.CheckAppVersion();

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* GetAppVersion_13(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            var result_of_this_method = global::AssetsVersionControl.GetAppVersion();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* GetAppSize_14(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            var result_of_this_method = global::AssetsVersionControl.GetAppSize();

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* FileCheck_15(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Collections.Generic.List<global::KeyValue> @kvs = (System.Collections.Generic.List<global::KeyValue>)typeof(System.Collections.Generic.List<global::KeyValue>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            global::AssetsVersionControl.FileCheck(@kvs);

            return __ret;
        }

        static StackObject* ReplaceAssetsRecord_16(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            global::AssetsVersionControl.ReplaceAssetsRecord();

            return __ret;
        }

        static StackObject* SaveRecord_17(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            global::AssetsVersionControl.SaveRecord();

            return __ret;
        }

        static StackObject* SaveNetVersion_18(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            global::AssetsVersionControl.SaveNetVersion();

            return __ret;
        }

        static StackObject* GetCurAssVersion_19(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            var result_of_this_method = global::AssetsVersionControl.GetCurAssVersion();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* GetNetAssVersion_20(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            var result_of_this_method = global::AssetsVersionControl.GetNetAssVersion();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* GetBuildInAssVersion_21(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);


            var result_of_this_method = global::AssetsVersionControl.GetBuildInAssVersion();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* GetNetValue_22(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @key = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @block = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::AssetsVersionControl.GetNetValue(@block, @key);

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* GetBuildInValue_23(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @key = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.String @block = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = global::AssetsVersionControl.GetBuildInValue(@block, @key);

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


        static object get_sec_Public_0(ref object o)
        {
            return global::AssetsVersionControl.sec_Public;
        }

        static StackObject* CopyToStack_sec_Public_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.sec_Public;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_sec_Assets_1(ref object o)
        {
            return global::AssetsVersionControl.sec_Assets;
        }

        static StackObject* CopyToStack_sec_Assets_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.sec_Assets;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_sec_Lua_2(ref object o)
        {
            return global::AssetsVersionControl.sec_Lua;
        }

        static StackObject* CopyToStack_sec_Lua_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.sec_Lua;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_sec_Other_3(ref object o)
        {
            return global::AssetsVersionControl.sec_Other;
        }

        static StackObject* CopyToStack_sec_Other_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.sec_Other;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_sec_MP4_4(ref object o)
        {
            return global::AssetsVersionControl.sec_MP4;
        }

        static StackObject* CopyToStack_sec_MP4_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.sec_MP4;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static object get_AssetsRecord_5(ref object o)
        {
            return global::AssetsVersionControl.AssetsRecord;
        }

        static StackObject* CopyToStack_AssetsRecord_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.AssetsRecord;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_AssetsRecord_5(ref object o, object v)
        {
            global::AssetsVersionControl.AssetsRecord = (global::AssetsSetting)v;
        }

        static StackObject* AssignFromStack_AssetsRecord_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            global::AssetsSetting @AssetsRecord = (global::AssetsSetting)typeof(global::AssetsSetting).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            global::AssetsVersionControl.AssetsRecord = @AssetsRecord;
            return ptr_of_this_method;
        }

        static object get_BuildInVersion_6(ref object o)
        {
            return global::AssetsVersionControl.BuildInVersion;
        }

        static StackObject* CopyToStack_BuildInVersion_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.BuildInVersion;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_BuildInVersion_6(ref object o, object v)
        {
            global::AssetsVersionControl.BuildInVersion = (global::AssetsSetting)v;
        }

        static StackObject* AssignFromStack_BuildInVersion_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            global::AssetsSetting @BuildInVersion = (global::AssetsSetting)typeof(global::AssetsSetting).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            global::AssetsVersionControl.BuildInVersion = @BuildInVersion;
            return ptr_of_this_method;
        }

        static object get_NetVersion_7(ref object o)
        {
            return global::AssetsVersionControl.NetVersion;
        }

        static StackObject* CopyToStack_NetVersion_7(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.NetVersion;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_NetVersion_7(ref object o, object v)
        {
            global::AssetsVersionControl.NetVersion = (global::AssetsSetting)v;
        }

        static StackObject* AssignFromStack_NetVersion_7(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            global::AssetsSetting @NetVersion = (global::AssetsSetting)typeof(global::AssetsSetting).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            global::AssetsVersionControl.NetVersion = @NetVersion;
            return ptr_of_this_method;
        }

        static object get_abUseRecords_8(ref object o)
        {
            return global::AssetsVersionControl.abUseRecords;
        }

        static StackObject* CopyToStack_abUseRecords_8(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.abUseRecords;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_abUseRecords_8(ref object o, object v)
        {
            global::AssetsVersionControl.abUseRecords = (System.Collections.Generic.List<System.String>)v;
        }

        static StackObject* AssignFromStack_abUseRecords_8(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Collections.Generic.List<System.String> @abUseRecords = (System.Collections.Generic.List<System.String>)typeof(System.Collections.Generic.List<System.String>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            global::AssetsVersionControl.abUseRecords = @abUseRecords;
            return ptr_of_this_method;
        }

        static object get_buildInAssVersion_9(ref object o)
        {
            return global::AssetsVersionControl.buildInAssVersion;
        }

        static StackObject* CopyToStack_buildInAssVersion_9(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = global::AssetsVersionControl.buildInAssVersion;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_buildInAssVersion_9(ref object o, object v)
        {
            global::AssetsVersionControl.buildInAssVersion = (System.String)v;
        }

        static StackObject* AssignFromStack_buildInAssVersion_9(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.String @buildInAssVersion = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            global::AssetsVersionControl.buildInAssVersion = @buildInAssVersion;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new global::AssetsVersionControl();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
